<?php
/**
 * @package techniv-bb.tcnv-fw
 * @version 0.0.1
 * @copyright © Techniv 2011
 * @license <http://opensource.org/licenses/gpl-3.0.html> GNU General Public License - 3.0
 */

/**
 * Description of TcnvTemplateSync
 *
 * @author Vincent
 */
class TcnvTemplateSync {
	
	private static $tpl_vars = array();
	private static $lang_vars = array();


	public static function add_tpl_vars($tpl_vars){
		self::$tpl_vars = array_merge(self::$tpl_vars,$tpl_vars);
	}
	public static function add_tpl_var($tpl_var_name, $tpl_var){
		self::$tpl_vars[$tpl_var_name] = $tpl_var;
	}
	

	/** @param template $template */
	public static function put_tpl_var($template){
		$template->assign_vars(self::$tpl_vars);
	}


// <editor-fold defaultstate="collapsed" desc="SINGLETON">
	private static $instance;
	
	public function getIstance(){
		if(!isset(self::$instance)) self::$instance = new TcnvTemplateSync();
		return self::$instance;
	}
// </editor-fold>
}

?>
